import request from '@/request/api'
// 1、新增工作票按工作票类型查询部分安全措施
export function addWorkTicketInfo(data) {
  return request({
    url: '/eam-service-configure/safetcf/queryList',
    method: 'get',
    params: data
  })
}
// 2、查询单条工作票详细数据
export function getWorkTicketData(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/getByIdAndType',
    method: 'get',
    params: data
  })
}
// 3、单条工作票删除
export function deleteWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/deleteByIdAndType',
    method: 'get',
    params: data
  })
}
// 4、电气第一种工作票-填写保存按钮
export function saveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/writeSave',
    method: 'post',
    data: data
  })
}
// 5、电气第一种工作票-提交按钮
export function submitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/writeSubmit',
    method: 'post',
    data: data
  })
}
// 6、工作票查询列表
export function getWorkTicketList(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/getListAndPaging',
    method: 'post',
    data: data
  })
}
// 7、工作票历史导入获取信息
export function getWorkTicketInfo(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/historyImport',
    method: 'get',
    params: data
  })
}
// 8、签名检验用户名密码
export function verifyStaffInfo(data) {
  return request({
    url: '/eam-service-system/system/staff/ticketVerifyStaffInfo',
    method: 'post',
    data: data
  })
}
// 9、电气第一种工作票-待签发保存
export function signSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/signSave',
    method: 'post',
    data: data
  })
}
// 10、电气第一种工作票-待会签保存
export function countersignSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/countersignSave',
    method: 'post',
    data: data
  })
}
// 11、电气第一种工作票-待接收保存
export function acceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/acceptSave',
    method: 'post',
    data: data
  })
}
// 12、电气第一种工作票-待许可保存
export function permitSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/permitSave',
    method: 'post',
    data: data
  })
}
// 13、电气第一种工作票-工作待终结保存
export function workEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/workEndSave',
    method: 'post',
    data: data
  })
}
// 14、电气第一种工作票-工作票待终结保存
export function ticketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 15、工作票新增备注
export function addRemarks(data) {
  return request({
    url: '/eam-service-ticket/work/workdescription/insert',
    method: 'post',
    data: data
  })
}
// 16、工作票获取备注列表
export function getRemarksList(workTicketId = "") {
  return request({
    url: '/eam-service-ticket/work/workdescription/getListByWorkTicketId',
    method: 'get',
    params: {
      workTicketId
    }
  })
}
// 17、通过组织id获取部门信息
export function getDeptByOrgId(data) {
  return request({
    url: '/eam-service-system/system/org/queryDeptByOrgId',
    method: 'get',
    params: data
  })
}
// 18、电子签名更新状态
export function electronicSigns(data) {
  return request({
    url: '/eam-service-ticket/work/workflow/updateList',
    method: 'post',
    data: data
  })
}
// 19、上传文件
export function uploadFiles(params, data) {
  return request({
    url: '/eam-common-web/ElectronicSignature/createByFile',
    method: 'post',
    params: params,
    data: data
  })
}
// 20、电子签名信息
export function electronicInfo(data) {
  return request({
    url: '/eam-common-web/ElectronicSignature/createByCategory',
    method: 'get',
    params: data
  })
}
// 21、工作票变更-根据id查询数据
export function getById(data) {
  return request({
    url: '/eam-service-ticket/ticketChange/getById',
    method: 'get',
    params: data
  })
}
// 22、工作票变更-分页查询数据
export function getListAndPaging(data) {
  return request({
    url: '/eam-service-ticket/ticketChange/getListAndPaging',
    method: 'post',
    data: data
  })
}
// 23、工作票变更-新增单条数据
export function insertData(data) {
  return request({
    url: '/eam-service-ticket/ticketChange/insert',
    method: 'post',
    data: data
  })
}
// 24、工作票负责人变动-新增单条数据
export function insertManagerData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeDirector/insert',
    method: 'post',
    data: data
  })
}
// 25、工作票延期-新增单条数据
export function insertDelayData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeDelay/insert',
    method: 'post',
    data: data
  })
}
// 26、工作间断-新增单条数据
export function insertIntermittentData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeInterrupt/insert',
    method: 'post',
    data: data
  })
}
// 27、工作间断-修改单条数据
export function updateIntermittentData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeInterrupt/update',
    method: 'put',
    data: data
  })
}
// 28、增加工作内容-新增单条数据
export function insertContentData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeContent/insert',
    method: 'post',
    data: data
  })
}
// 29、工作班成员变动-新增单条数据
export function insertMemberData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeMember/insert',
    method: 'post',
    data: data
  })
}
// 30、部分安全措施变动-新增单条数据
export function insertSafeData(data) {
  return request({
    url: '/eam-service-ticket/ticketChangeSecurityArrangement/insert',
    method: 'post',
    data: data
  })
}
// 31、电气第一种工作票-打印预览
export function printById(data) {
  return request({
    url: '/eam-service-ticket/work/electricalfirst/printById',
    method: 'get',
    params: data
  })
}
// 32、预览状态变更
export function updatePreview(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/update',
    method: 'post',
    data: data
  })
}
// 33、弹框-工单数据列表
export function queryPageList(data) {
  return request({
    url: '/eam-service-order/orderAll/queryPageListNoMerge',
    method: 'get',
    params: data
  })
}
// 34、弹框-工单根据id查询数据
export function queryById(data) {
  return request({
    url: '/eam-service-order/orderAll/queryById',
    method: 'get',
    params: data
  })
}
// 35、电气第二种工作票-填写保存按钮
export function saveEsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/writeSave',
    method: 'post',
    data: data
  })
}
// 36、电气第二种工作票-提交按钮
export function submitEsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/writeSubmit',
    method: 'post',
    data: data
  })
}
// 37、电气第二种工作票-待签发保存
export function esSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/signSave',
    method: 'post',
    data: data
  })
}
// 38、电气第二种工作票-待会签保存
export function esCountersignSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/countersignSave',
    method: 'post',
    data: data
  })
}
// 39、电气第二种工作票-待接收保存
export function esAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/acceptSave',
    method: 'post',
    data: data
  })
}
// 40、电气第二种工作票-待许可保存
export function esPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/permitSave',
    method: 'post',
    data: data
  })
}
// 41、电气第二种工作票-工作待终结保存
export function esWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/workEndSave',
    method: 'post',
    data: data
  })
}
// 42、电气第二种工作票-工作票待终结保存
export function esTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 43、工作票重新签名-删除上次签名数据
export function deleteSign(idList = '') {
  return request({
    url: '/eam-service-ticket/work/workflow/batchDeleteById',
    method: 'get',
    params: { idList }
  })
}
// 44、第三种工作票-填写保存按钮
export function saveTdWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/thirdticket/writeSave',
    method: 'post',
    data: data
  })
}
// 45、第三种工作票-提交按钮
export function submitTdWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/thirdticket/writeSubmit',
    method: 'post',
    data: data
  })
}
// 46、第三种工作票-待许可保存
export function tdPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/thirdticket/permitSave',
    method: 'post',
    data: data
  })
}
// 47、第三种工作票-工作票待终结保存
export function tdTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/thirdticket/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 48、机械工作票-填写保存按钮
export function saveMlWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/writeSave',
    method: 'post',
    data: data
  })
}
// 49、机械工作票-提交按钮
export function submitMlWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/writeSubmit',
    method: 'post',
    data: data
  })
}
// 50、机械工作票-待签发保存
export function mlSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/signSave',
    method: 'post',
    data: data
  })
}
// 51、机械工作票-待接收保存
export function mlAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/acceptSave',
    method: 'post',
    data: data
  })
}
// 52、机械工作票-待许可保存
export function mlPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/permitSave',
    method: 'post',
    data: data
  })
}
// 53、机械工作票-工作待终结保存
export function mlWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/workEndSave',
    method: 'post',
    data: data
  })
}
// 54、机械工作票-工作票待终结保存
export function mlTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 55、一级动火工作票-填写保存按钮
export function savePfWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/writeSave',
    method: 'post',
    data: data
  })
}
// 56、一级动火工作票-提交按钮
export function submitPfWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/writeSubmit',
    method: 'post',
    data: data
  })
}
// 57、一级动火工作票-待签发保存
export function pfSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/signSave',
    method: 'post',
    data: data
  })
}
// 58、一级动火工作票-待接收保存
export function pfAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/acceptSave',
    method: 'post',
    data: data
  })
}
// 59、一级动火工作票-待许可保存
export function pfPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/permitSave',
    method: 'post',
    data: data
  })
}
// 60、一级动火工作票-工作待终结保存
export function pfWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/workEndSave',
    method: 'post',
    data: data
  })
}
// 61、二级动火工作票-填写保存按钮
export function savePsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/writeSave',
    method: 'post',
    data: data
  })
}
// 62、二级动火工作票-提交按钮
export function submitPsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/writeSubmit',
    method: 'post',
    data: data
  })
}
// 63、二级动火工作票-待签发保存
export function psSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/signSave',
    method: 'post',
    data: data
  })
}
// 64、二级动火工作票-待会签保存
export function psCountersignSave(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/countersignSave',
    method: 'post',
    data: data
  })
}
// 65、二级动火工作票-待接收保存
export function psAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/acceptSave',
    method: 'post',
    data: data
  })
}
// 66、二级动火工作票-待许可保存
export function psPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/permitSave',
    method: 'post',
    data: data
  })
}
// 67、二级动火工作票-工作待终结保存
export function psWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/workEndSave',
    method: 'post',
    data: data
  })
}
// 68、根据工单id查询设备数据
export function getEquipmentById(data) {
  return request({
    url: '/eam-service-order/orderEquipment/queryById',
    method: 'get',
    params: data
  })
}
// 69、电气第二种工作票-打印预览
export function printEsById(data) {
  return request({
    url: '/eam-service-ticket/work/electricalsecond/printById',
    method: 'get',
    params: data
  })
}
// 70、第三种工作票-打印预览
export function printTdById(data) {
  return request({
    url: '/eam-service-ticket/work/thirdticket/printById',
    method: 'get',
    params: data
  })
}
// 71、机械工作票-打印预览
export function printMlById(data) {
  return request({
    url: '/eam-service-ticket/work/mechanicalticket/printById',
    method: 'get',
    params: data
  })
}
// 72、一级动火工作票-打印预览
export function printPfById(data) {
  return request({
    url: '/eam-service-ticket/work/firstlevelhotwork/printById',
    method: 'get',
    params: data
  })
}
// 73、二级动火工作票-打印预览
export function printPsById(data) {
  return request({
    url: '/eam-service-ticket/work/secondlevelhotwork/printById',
    method: 'get',
    params: data
  })
}
// 74、电力线路第一种工作票-填写保存按钮
export function savePlfWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/writeSave',
    method: 'post',
    data: data
  })
}
// 75、电力线路第一种工作票-提交按钮
export function submitPlfWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/writeSubmit',
    method: 'post',
    data: data
  })
}
// 76、电力线路第一种工作票-待签发保存
export function plfSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/signSave',
    method: 'post',
    data: data
  })
}
// 电力线路第一种工作票-待会签保存（需求变更-新增加状态）
export function plCountersignSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/countersignSave',
    method: 'post',
    data: data
  })
}
// 77、电力线路第一种工作票-待接收保存
export function plfAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/acceptSave',
    method: 'post',
    data: data
  })
}
// 78、电力线路第一种工作票-待许可保存
export function plfPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/permitSave',
    method: 'post',
    data: data
  })
}
// 79、电力线路第一种工作票-工作待终结保存
export function plfWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/workEndSave',
    method: 'post',
    data: data
  })
}
// 80、电力线路第一种工作票-工作票待终结保存
export function plfTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 82、电力线路第一种工作票-打印预览
export function printPlfById(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinefirst/printById',
    method: 'get',
    params: data
  })
}
// 83、电力线路第二种工作票-填写保存按钮
export function savePlsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/writeSave',
    method: 'post',
    data: data
  })
}
// 84、电力线路第二种工作票-提交按钮
export function submitPlsWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/writeSubmit',
    method: 'post',
    data: data
  })
}
// 85、电力线路第二种工作票-待签发保存
export function plsSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/signSave',
    method: 'post',
    data: data
  })
}
// 86、电力线路第二种工作票-待接收保存
export function plsAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/acceptSave',
    method: 'post',
    data: data
  })
}
// 87、电力线路第二种工作票-工作待终结保存
export function plsWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/workEndSave',
    method: 'post',
    data: data
  })
}
// 88、电力线路第二种工作票-工作票待终结保存
export function plsTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 89、电力线路第二种工作票-打印预览
export function printPlsById(data) {
  return request({
    url: '/eam-service-ticket/work/powerlinesecond/printById',
    method: 'get',
    params: data
  })
}
// 90、电力线路第二种工作票-工作票安全措施修改
export function plsTicketSafe(data) {
  return request({
    url: '/eam-service-ticket/work/workinfo/update',
    method: 'post',
    data: data
  })
}
// 91、工作票样票-保存按钮
export function saveSampleTicket(data) {
  return request({
    url: '/eam-service-ticket/fake/WorkFake/fakeSave',
    method: 'post',
    data: data
  })
}
// 92、单条工作票样票删除
export function deleteSampleTicket(data) {
  return request({
    url: '/eam-service-ticket/fake/WorkFake/delete',
    method: 'get',
    params: data
  })
}
// 93、查询工作票样票详情数据
export function getSampleTicketData(data) {
  return request({
    url: '/eam-service-ticket/fake/WorkFake/details',
    method: 'get',
    params: data
  })
}
// 94、工作票样票查询列表
export function getSampleTicketList(data) {
  return request({
    url: '/eam-service-ticket/fake/WorkFake/queryList',
    method: 'post',
    data: data
  })
}
// 95、查询工作票变更-工作班成员变更数据
export function getByTicket(ticketId = "") {
  return request({
    url: '/eam-service-ticket/ticketChangeMember/getByTicket',
    method: 'get',
    params: {
      ticketId
    }
  })
}
// 96、工作票办理-查询按钮权限
export function getPower(id = "", status = "", type = "") {
  return request({
    url: '/eam-service-ticket/ticket/power/getPowerNew',
    method: 'get',
    params: {
      id,
      status,
      type
    }
  })
}
// 97、获取工单工作地点信息
export function queryOrderById(orderId = "") {
  return request({
    url: '/eam-service-order/orderDispatch/queryDispatchInfoByOrderId',
    method: 'get',
    params: {
      orderId
    }
  })
}
// 98、获取工单派工信息
export function getDispatchApi(orderId = "") {
  return request({
    url: "/eam-service-order/defect/dispatch/queryDispatchInfoByOrderId",
    method: "get",
    params: {
      orderId
    },
  });
}
// 99、高处安全作业票-填写保存按钮
export function htSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/writeSave',
    method: 'post',
    data: data
  })
}
// 100、高处安全作业票-提交按钮
export function htSubmitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/writeSubmit',
    method: 'post',
    data: data
  })
}
// 101、高处安全作业票-待签发保存
export function htSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/signSave',
    method: 'post',
    data: data
  })
}
// 102、高处安全作业票-待接收保存
export function htAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/acceptSave',
    method: 'post',
    data: data
  })
}
// 103、高处安全作业票-待许可保存
export function htPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/permitSave',
    method: 'post',
    data: data
  })
}
// 104、高处安全作业票-工作票待终结保存
export function htTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 105、高处安全作业票-打印预览
export function htPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/hightask/printById',
    method: 'get',
    params: data
  })
}
// 106、高处安全作业票-是否显示许可信息2
export function showInfo(id = "") {
  return request({
    url: '/eam-service-ticket/work/hightask/ishide',
    method: 'post',
    params: {
      id
    }
  })
}
// 107、动火安全作业票-填写保存按钮
export function hsSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/writeSave',
    method: 'post',
    data: data
  })
}
// 108、动火安全作业票-提交按钮
export function hsSubmitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/writeSubmit',
    method: 'post',
    data: data
  })
}
// 109、动火安全作业票-待签发保存
export function hsSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/signSave',
    method: 'post',
    data: data
  })
}
// 110、动火安全作业票-待会签保存
export function hsCountersignSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/countersignSave',
    method: 'post',
    data: data
  })
}
// 111、动火安全作业票-待接收保存
export function hsAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/acceptSave',
    method: 'post',
    data: data
  })
}
// 112、动火安全作业票-待许可保存
export function hsPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/permitSave',
    method: 'post',
    data: data
  })
}
// 113、动火安全作业票-工作待终结保存
export function hsWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/workEndSave',
    method: 'post',
    data: data
  })
}
// 114、动火安全作业票-工作票待终结保存
export function hsTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 115、动火安全作业票-打印预览
export function hsPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/hotworksafe/printById',
    method: 'get',
    params: data
  })
}
// 116、临时用电安全作业票-填写保存按钮
export function tpSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/writeSave',
    method: 'post',
    data: data
  })
}
// 117、临时用电安全作业票-提交按钮
export function tpSubmitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/writeSubmit',
    method: 'post',
    data: data
  })
}
// 118、临时用电安全作业票-待签发保存
export function tpSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/signSave',
    method: 'post',
    data: data
  })
}
// 119、临时用电安全作业票-待接收保存
export function tpAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/acceptSave',
    method: 'post',
    data: data
  })
}
// 120、临时用电安全作业票-待许可保存
export function tpPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/permitSave',
    method: 'post',
    data: data
  })
}
// 121、临时用电安全作业票-工作票待终结保存
export function tpTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 122、临时用电安全作业票-打印预览
export function tpPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/tempuserpower/printById',
    method: 'get',
    params: data
  })
}
// 123、吊装安全作业票-填写保存按钮
export function hSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/writeSave',
    method: 'post',
    data: data
  })
}
// 124、吊装安全作业票-提交按钮
export function hSubmitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/writeSubmit',
    method: 'post',
    data: data
  })
}
// 125、吊装安全作业票-待签发保存
export function hSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/signSave',
    method: 'post',
    data: data
  })
}
// 126、吊装安全作业票-待接收保存
export function hAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/acceptSave',
    method: 'post',
    data: data
  })
}
// 127、吊装安全作业票-待许可保存
export function hPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/permitSave',
    method: 'post',
    data: data
  })
}
// 128、吊装安全作业票-工作票待终结保存
export function hTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 129、吊装安全作业票-打印预览
export function hPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/hoisting/printById',
    method: 'get',
    params: data
  })
}
// 130、检查票据是否过期
export function checkTimeOut(data) {
  return request({
    url: '/eam-service-ticket/work/workticket/checkTimeOut',
    method: 'post',
    data: data
  })
}
// 131、检查票是否关联操作票
export function checkRelation(data = "") {
  return request({
    url: '/eam-service-ticket/operation/checkRelation',
    method: 'post',
    params: data
  })
}
// 131、检查票是否关联操作票
export function checkRelationPro(data = "") {
  return request({
    url: '/eam-service-ticket/operation/checkRelationPro',
    method: 'post',
    params: data
  })
}
// 132、YC线路二种-填写保存按钮
export function lSSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/writeSave',
    method: 'post',
    data: data
  })
}
// 133、YC线路二种-提交按钮
export function lSSubmitWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/writeSubmit',
    method: 'post',
    data: data
  })
}
// 134、YC线路二种-待签发保存
export function lSSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/signSave',
    method: 'post',
    data: data
  })
}
// 135、YC线路二种-待接收保存
export function lSAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/acceptSave',
    method: 'post',
    data: data
  })
}
// 136、YC线路二种-工作票待终结保存
export function lSTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 137、YC线路二种-打印预览
export function lSPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/yclinesecond/printById',
    method: 'get',
    params: data
  })
}
// 138、YC线路一种-填写保存按钮
export function lfSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/yclinefirst/writeSave',
    method: 'post',
    data: data
  })
}
// 139、YC线路一种-待签发保存
export function lfSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinefirst/signSave',
    method: 'post',
    data: data
  })
}
// 140、YC线路一种-待许可保存
export function lfAcceptSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinefirst/permitSave',
    method: 'post',
    data: data
  })
}
// 141、YC线路一种-工作票待终结保存
export function lfTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/yclinefirst/ticketEndSave',
    method: 'post',
    data: data
  })
}
// 142、YC线路一种-打印预览
export function lfPrintById(data) {
  return request({
    url: '/eam-service-ticket/work/yclinefirst/printById',
    method: 'get',
    params: data
  })
}
// 143、zsj第一种票
// 填写保存按钮
export function zsjSaveWorkTicket(data) {
  return request({
    url: '/eam-service-ticket/work/zsjBidSectionFirst/writeSave',
    method: 'post',
    data: data
  })
}
// 待签发保存
export function zsjSignSave(data) {
  return request({
    url: '/eam-service-ticket/work/zsjBidSectionFirst/signSave',
    method: 'post',
    data: data
  })
}
// 待许可保存
export function zsjPermitSave(data) {
  return request({
    url: '/eam-service-ticket/work/zsjBidSectionFirst/permitSave',
    method: 'post',
    data: data
  })
}
// 工作待终结保存
export function zsjWorkEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/zsjBidSectionFirst/workEndSave',
    method: 'post',
    data: data
  })
}
// 工作票待终结保存
export function zsjTicketEndSave(data) {
  return request({
    url: '/eam-service-ticket/work/zsjBidSectionFirst/ticketEndSave',
    method: 'post',
    data: data
  })
}